package  entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Material entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="material")
public class Material implements java.io.Serializable {

	// Fields

	private String rowid;
	private String primaryid;
	private String name;
	private String code;

	// Constructors

	/** default constructor */
	public Material() {
	}

	/** minimal constructor */
	public Material(String rowid) {
		this.rowid = rowid;
	}

	/** full constructor */
	public Material(String rowid, String primaryid, String name, String code) {
		this.rowid = rowid;
		this.primaryid = primaryid;
		this.name = name;
		this.code = code;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "system-uuid")  
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name="rowid")
	public String getRowid() {
		return this.rowid;
	}

	public void setRowid(String rowid) {
		this.rowid = rowid;
	}
	@Column(name="primaryid")
	public String getPrimaryid() {
		return this.primaryid;
	}

	public void setPrimaryid(String primaryid) {
		this.primaryid = primaryid;
	}
	@Column(name="name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="code")
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}